<template>
    <main class="ant-layout-content">
        <div class="index_Order__BTzvT"
            data-log="{&quot;oid&quot;:&quot;page_webpage_cloud_push_song_myorder&quot;,&quot;isPage&quot;:true,&quot;events&quot;:[&quot;_pv&quot;,&quot;_pd&quot;],&quot;params&quot;:{}}">
            <h1>我的订单</h1>
            <div class="index_searchBar__xITLl">
                <el-input v-model="input1" style="width: 240px" placeholder="Please Input" :prefix-icon="Search" />
                <el-select v-model="value" placeholder="Select" style="width: 100px; margin-left: 20px;">
                    <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
                </el-select>
                <el-select v-model="value" placeholder="Select" style="width: 100px; margin-left: 20px;">
                    <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
                </el-select>
                <div style="width: 100px; margin-left: 20px;">
                    <el-date-picker v-model="value1" type="daterange" range-separator="To"
                        start-placeholder="Start date" end-placeholder="End date" :size="size" />
                </div>
            </div>
            <div class="table">
                <el-table :data="tableData" style="width: 100%">
                    <el-table-column fixed prop="date" label="Date" width="150" />
                    <el-table-column prop="name" label="Name" width="120" />
                    <el-table-column prop="state" label="State" width="120" />
                    <el-table-column prop="city" label="City" width="120" />
                    <el-table-column prop="address" label="Address" width="600" />
                    <el-table-column prop="zip" label="Zip" width="120" />
                    <el-table-column fixed="right" label="Operations" min-width="120">
                        <template #default>
                            <el-button link type="primary" size="small" @click="handleClick">
                                Detail
                            </el-button>
                            <el-button link type="primary" size="small">Edit</el-button>
                        </template>
                    </el-table-column>
                </el-table>
            </div>
            <div class="pagination">
                <el-pagination background layout="prev, pager, next" :total="10" />
            </div>
        </div>
    </main>
    <el-affix position="bottom" :offset="250" class="right-affix">
        <div class="index_feedbackWrap__ODvDd">
            <div class="index_bar__PRbWW"><img
                    src="//p6.music.126.net/obj/wonDlsKUwrLClGjCm8Kx/45810308512/d428/8741/5907/225ff1a518706c83380d782b8abab3fa.jpg?imageView=1&amp;type=webp&amp;thumbnail=48x0"
                    style="width: 24px; height: 24px;">
                <div class="index_text__4P5Vt">咨询反馈</div>
            </div>
            <div class="index_window__s0lmU" style="display: none;">
                <div class="index_subText__FxbRY">更多问题请添加</div>
                <div class="index_text__4P5Vt">云音乐专属顾问咨询</div><img
                    src="//p5.music.126.net/obj/wonDlsKUwrLClGjCm8Kx/59868833734/33d6/220c/eacd/85a5f227d12c52d4e416edd68c78ea05.png?imageView=1&amp;type=webp&amp;thumbnail=300x0"
                    style="width: 100px; height: 100px;">
            </div>
        </div>
    </el-affix>
</template>

<script setup lang="ts">
import { Search } from '@element-plus/icons-vue'

const tableData = [
    {
        date: '2016-05-03',
        name: 'Tom',
        state: 'California',
        city: 'Los Angeles',
        address: 'No. 189, Grove St, Los Angeles',
        zip: 'CA 90036',
        tag: 'Home',
    },
    {
        date: '2016-05-02',
        name: 'Tom',
        state: 'California',
        city: 'Los Angeles',
        address: 'No. 189, Grove St, Los Angeles',
        zip: 'CA 90036',
        tag: 'Office',
    },
    {
        date: '2016-05-04',
        name: 'Tom',
        state: 'California',
        city: 'Los Angeles',
        address: 'No. 189, Grove St, Los Angeles',
        zip: 'CA 90036',
        tag: 'Home',
    },
    {
        date: '2016-05-01',
        name: 'Tom',
        state: 'California',
        city: 'Los Angeles',
        address: 'No. 189, Grove St, Los Angeles',
        zip: 'CA 90036',
        tag: 'Office',
    },
]
</script>

<style lang="scss" scoped>
// 固定
.right-affix {
    right: 0;
    /* 距离右侧20像素 */
    position: fixed;
    bottom: 20px;
    /* 与offset保持一致 */
    z-index: 100;
    /* 确保在其他元素上方 */
}

.index_feedbackWrap__ODvDd .index_bar__PRbWW {
    -ms-flex-align: center;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px 0 0 8px;
    border-right-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 182px;
    padding-top: 37px;
    width: 50px;
    unicode-bidi: isolate;

    img {
        overflow-clip-margin: content-box;
        overflow: clip;
        border-style: none;
        vertical-align: middle;
        width: 24px;
        height: 24px;
    }

    .index_text__4P5Vt {
        color: #333;
        font-size: 16px;
        font-weight: 400;
        line-height: 120%;
        margin-top: 8px;
        width: 16px;
    }
}


//内容
.ant-layout-content {
    min-width: 1440px;
    flex: auto;
    min-height: 0;
    box-sizing: border-box;

    .index_Order__BTzvT {
        background-color: #fff;
        border-radius: 10px;
        margin: 30px auto;
        padding: 0 40px 40px;
        width: 1328px;
        box-sizing: border-box;

        h1 {
            -ms-flex-align: center;
            align-items: center;
            color: #202a44;
            display: -ms-flexbox;
            display: flex;
            font-size: 24px;
            height: 88px;
            margin: 0;
            list-style: none;
            padding: 0;
            font-weight: 500;
            box-sizing: border-box;
        }

        .index_searchBar__xITLl {
            height: 32px;
            margin: 15px 0 24px;
            box-sizing: border-box;
            display: flex;
        }

        .pagination {
            margin-top: 20px;
            display: flex;
            align-content: center;
            justify-content: center;
        }
    }
}
</style>